//
// Created by 17775 on 2024/9/20.
//

#ifndef RAYCI_LOGMANAGER_H
#define RAYCI_LOGMANAGER_H


#include <QObject>
#include <QString>
#include <QDebug>

class LogManager : public QObject {
Q_OBJECT

public:
    static LogManager* instance() {
        static LogManager logManager;
        return &logManager;
    }
//    ~LogManager() {}

    void logMessage(QtMsgType type, const QString& message) {
        emit newLogMessage(type, message);
    }

signals:
    void newLogMessage(QtMsgType type, const QString& message);

private:
    LogManager() = default;
};


#endif //RAYCI_LOGMANAGER_H
